﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace CoderJoe.Aspect
{
    partial class Extensions
    {
        internal static IEnumerable<IAspect> FindAspects(this MemberInfo member, AspectModel model)
        {
            return model.FindAspectsForMember(member);
        }

        internal static IEnumerable<IAspect> FindAspects(this MemberInfo member)
        {
            return member.FindAspects(AspectModel.Current);
        }
    }
}
